# _author_ = liuxiaowen
# _desc_ = 将列表中的指定元素全部删除

container = ["小花","小美","小花"]
to_delate = "小花"

# 必须带条件指定条件类似if条件。并非一直执行1！！
# for只是遍历，不涉及条件！！！
while to_delate in container:
    container.remove(to_delate)
else:
    print(container)